Skip to main content

DescribeLoadBalancers

Description

call DescribeLoadBalancers to query the created load balancing instance.

Request Method

POST

Request Path

/apsara/route/Slb/DescribeLoadBalancers

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
AddressBODYstringNo192.168.0.1the service address of the load balancing instance.
VSwitchIdBODYstringNovsw-bp12mw1f8k3****the switch ID to which the load balancing instance belongs.
AddressIPVersionBODYstringNoipv4IP version, can be set to ipv4 or ipv6. Description Currently, IPv6 instances are supported and the instance type must be guaranteed-performance instances. The available areas are as follows: e and f usable areas in east China 1 region, f and g usable areas in north China 2 region, d and e usable areas in east China 3 region, a and B usable areas in north China 3 region, and d and e usable areas in south China 1 region.
LoadBalancerIdBODYstringNolb-bp1b6c719dfa****load balancing instance ID. supports multi-value queries. You can enter up to 10 IDs separated by commas (,).
PayTypeBODYstringNoPayOnDemandload balancing instance payment type. Value:PayOnDemand or PrePay. PayOnDemand: Pay by volume. PrePay: package year and month.
SlaveZoneIdBODYstringNocn-hangzhou-dthe standby zone ID of the load balancing instance. Currently, the multi-zone function is not supported for financial cloud users.
versionBODYstringNo2016-01-01version of api
InternetChargeTypeBODYstringNopaybybandwidthpublic network instance payment method. Value:paybybandwidth or paybytraffic. paybybandwidth: Billing by bandwidth. paybytraffic: Billing by traffic. description if this parameter is not specified, it means that the original charging method is maintained.
LoadBalancerNameBODYstringNoabc1load balancing instance name. supports multi-value queries. You can enter up to 10 names separated by commas (,).
ServerIdBODYstringNovm-23****added backend server ID.
VpcIdBODYstringNovpc-bp1aevy8sof****VPC ID to which the load balancing instance belongs.
regionIdBODYstringYesNo sample value for this parameter.region id
NetworkTypeBODYstringNovpcThe network type of the private network load balancing instance. Valid values:vpc or classic. vpc: vpc instance. classic: classic network instance.
RegionIdBODYstringYescn-qingdao-env17-d01the region ID of the load balancing instance. you can query the region ID from the region and available area list or by calling the DescribeRegions interface.
AddressTypeBODYstringNointranetthe network type of the load balancing instance. Value:intranet or internet. internet: after creating a public network load balancing instance, the system will assign a public network IP address to forward public network requests. intranet: after creating an intranet load balancing instance, the system will assign an intranet IP address and only forward intranet requests.
ServerIntranetAddressBODYstringNo10.XX.XX.6the intranet address of the added backend server. supports multi-value queries separated by half-width commas (,).
MasterZoneIdBODYstringNocn-hangzhou-bthe primary zone ID of the load balancing instance.
TagsBODYstringNo{"tagKey":"Key1","tagValue":"Value1"}the tag list of load balancing instance binding, its structure is a json dictionary, including TagKey and TagValue. In a request, the tag list supports up to 10 elements.

Return data

NameTypeSample valueDescription
Addressstring100.XX.XX.28server load balancing instance service address.
RequestIdstring365F4154-92F6-4AE4-92F8-7FF34B540710request ID.
VSwitchIdstringvsw-255ecr****the switch ID of the private network load balancing instance.
CreateTimestring2017-08-31T02:49:05Zload balancing instance creation time.
AddressIPVersionstringipv4IP version, which can be set to ipv4 or ipv6.
LoadBalancersarray of loadbalancerNo sample value for this parameter.array format, return the list of load balancing instances.
LoadBalancerNo sample value for this parameter.No description for this parameter.
LoadBalancerIdstringlb-hjfng****load balancing instance ID.
PayTypestringPrePayload balancing instance payment type, value:PayOnDemand or PrePay.
SlaveZoneIdstringcn-hangzhou-dthe standby zone ID of the instance.
InternetChargeTypestringpaybybandwidththe billing method of the public network instance. Value: paybybandwidth, billed by bandwidth. paybytraffic, charged by traffic (default). description when the value of the PayType parameter is PrePay, only bandwidth-by-bandwidth billing is supported.
RegionIdAliasstringcn-qingdao-env17-d01the region name of the load balancing instance.
LoadBalancerNamestringdefthe name of the load balancing instance.
VpcIdstringvpc-25dvzy9f8****the vpc ID of the private network load balancing instance.
NetworkTypestringvpcthe network type of the private network load balancing instance, value: vpc: vpc instance. classic: classic network instance.
RegionIdstringcn-qingdao-env17-d01the region ID of the load balancing instance.
AddressTypestringintranetthe network type of the load balancing instance.
LoadBalancerStatusstringactiveload balancing instance status: inactive: The instance listener in this state will no longer forward traffic. active: after the instance is created, the default state is active. locked: The instance has been locked.
MasterZoneIdstringcn-hangzhou-bthe main available area ID of the instance.
CreateTimeStamplong1504147745000load balancing instance creation timestamp.

Example

Successful Response example

{
"Address":"100.XX.XX.28",
"RequestId":"365F4154-92F6-4AE4-92F8-7FF34B540710",
"VSwitchId":"vsw-255ecr****",
"CreateTime":"2017-08-31T02:49:05Z",
"AddressIPVersion":"ipv4",
"LoadBalancers":"",
"LoadBalancer":"",
"LoadBalancerId":"lb-hjfng****",
"PayType":"PrePay",
"SlaveZoneId":"cn-hangzhou-d",
"InternetChargeType":"paybybandwidth",
"RegionIdAlias":"cn-qingdao-env17-d01",
"LoadBalancerName":"def",
"VpcId":"vpc-25dvzy9f8****",
"NetworkType":"vpc",
"RegionId":"cn-qingdao-env17-d01",
"AddressType":"intranet",
"LoadBalancerStatus":"active",
"MasterZoneId":"cn-hangzhou-b",
"CreateTimeStamp":"1504147745000"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}